<template>
  <el-tabs v-model="currentTab" className="profile-box" type="card">
    <el-tab-pane label="用户信息" name="workerInfo">
      <WorkerInfo></WorkerInfo>
    </el-tab-pane>
    <el-tab-pane label="设备管理" name="myDeviceList">
      <MyDeviceList></MyDeviceList>
    </el-tab-pane>
  </el-tabs>
</template>

<script>
import WorkerInfo from "@/components/worker/profile/WorkerInfo";
import MyDeviceList from "@/views/new/device-management/MyDeviceList";

export default {
  name: "Profile",
  components: {MyDeviceList, WorkerInfo},
  data() {
    return {
      currentTab: 'workerInfo'
    }
  }
}
</script>

<style scoped>
.profile-box {
  overflow: visible;
  border: 1px solid #DCDFE6;
  width: 800px;
  margin: 5% auto;
  padding: 35px 35px 15px 35px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  box-shadow: 0 0 8px #909399;
  background-color: #f8f8f8;
}
</style>
